package com.example.cilent;

import de.schlichtherle.license.LicenseContent;

import java.beans.XMLDecoder;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class test {
    public static void main(String[] args) throws FileNotFoundException {

        XMLDecoder xmlDecoder = new XMLDecoder(new BufferedInputStream(new FileInputStream("D:/ytkm/content.xml")));
        Object result = xmlDecoder.readObject();
        LicenseContent licenseContent=(LicenseContent) result;
        xmlDecoder.close();
        System.out.println(licenseContent.getInfo());
    }
}
